how to prove two functions are inverses